<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>主页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="/static/imgs/favicon.ico">
    <link href="/static/plugins/layui/css/layui.css" rel="stylesheet" media="all"/>
    {#    <link href="/static/css/index.css" rel="stylesheet" media="all"/>#}
    <link href="/static/css/public.css" rel="stylesheet"/>
    <link href="/static/css/store.css" rel="stylesheet"/>
    <link href="/static/css/homepage.css" rel="stylesheet"/>

</head>
<body>
<div class="layui-layout">
    <div class="layui-row">
        <ul class="layui-nav layui-bg-cyan">
            <li class="layui-nav-item" style="margin-left: 10%">
                <a href="/">
                    <i class="layui-icon" data-icon="&#xe68e;">&#xe68e;<cite> Home</cite></i>
                </a>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon" data-icon="&#xe6ed;">&#xe6ed;<cite> 婚庆服务</cite></i>
                </a>
                <dl class="layui-nav-child" id="GoodsType">
                    {% for foo in businesstype %}
                        <dd><a href="{% url 'home:goodsList' %}?goodstype={{ foo.id }}">{{ foo.category }}</a></dd>
                    {% endfor %}
                </dl>
            </li>

            {% if request.user.is_authenticated %}
                <li class="layui-nav-item" style="float: right;margin-right: 10%" id="userInfo">
                    <a href="javascript:;"><cite class="adminName">{{ request.user.username }}</cite></a>
                    <dl class="layui-nav-child">
                        <dd><a href="{% url 'home:changePassword' %}">
                            <i class="seraph icon-xiugai" data-icon="icon-xiugai"></i><cite>修改密码</cite></a>
                        </dd>
                        <dd><a href="{% url 'home:user_info' %}">
                            <i class="seraph icon-chakan" data-icon="icon-chakan"></i><cite>个人信息</cite></a>
                        </dd>
                        <dd><a href="{% url 'userprofile:logout' %}" class="signOut"><i
                                class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                    </dl>
                </li>
            {% else %}
                <li class="layui-nav-item" style="float: right;margin-right: 10%">
                    <a href="{% url 'userprofile:admin_login' %}">
                        <i class="layui-icon" data-icon="&#xe612;">&#xe612;<cite> 管理员</cite></i>
                    </a>
                </li>
                <li class="layui-nav-item" style="float: right">
                    <a href="javascript:;">
                        <i class="layui-icon" data-icon="&#xe770;">&#xe770;<cite> 商户</cite></i>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="{% url 'userprofile:business_login' %}">商户登录</a></dd>
                        <dd><a href="{% url 'userprofile:business_register' %}">商户注册</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" style="float: right">
                    <a href="javascript:;">
                        <i class="layui-icon" data-icon="&#xe66f;">&#xe66f;<cite> 用户</cite></i>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="{% url 'userprofile:user_login' %}">用户登录</a></dd>
                        <dd><a href="{% url 'userprofile:user_register' %}">用户注册</a></dd>
                    </dl>
                </li>
            {% endif %}
        </ul>
    </div>
    <div class="shop-temp">
        <div class="temp-hot">
            <div class="layui-container">
                <p class="temp-title-cn"><span></span>{{ currentType }}<span></span></p>
                <div class="layui-row layui-col-space20 shoplist">
                    {% for goodslist in goodslists %}
                        <div class="layui-col-xs6 layui-col-md3">
                            <a class="template store-list-box" href="{% url 'home:commodity' %}?goodsid={{ goodslist.id }}">
                                <img src="/media/{{ goodslist.goodsSrc }}" class="store-list-cover">
                                <h2 class="layui-elip">{{ goodslist.goodsTitle }}</h2>
                                <p class="price"><span title="价格">价格：{{ goodslist.goodsPrice }}</span></p>
                            </a>
                        </div>
                    {% endfor %}
                </div>
            </div>
        </div>
    </div>
    <div class="layui-footer footer">
        <p style="font-family: consolas;"><span>Copyright &copy; {% now "Y" %} Mater  联系我们：18419068159</span></p>
    </div>
</div>
<script src="/static/plugins/layui/layui.js"></script>
<script src="/static/js/home/home.js"></script>

</body>
</html>